package com.example.cangzhou.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.cangzhou.entity.User;
import com.example.cangzhou.result.Result;
import com.example.cangzhou.vo.UserVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService extends IService<User> {
    Result<UserVo> login(String account, String password, Boolean isAdmin);
    Result<String> register(User user);
    Result<String> addUser(User user);
    Result<List<User>> getUserList();
    Result<String> updateUser(User user);
    Result<String> deleteUser(Integer id);
    Result<String> updateUserStatus(Integer id, Integer status);
}
